package ai.zixing.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author zixing
 */
@Setter
@Getter
@Configuration
@ConfigurationProperties("thead.pool")
public class ThreadPoolConfig {
    /**
     * 核心线程数
     */
    private int corePoolSize;

    /**
     * 最大线程数
     */
    private int maxPoolSize;

    /**
     * 线程空闲时间 秒
     */
    private int keepAliveSeconds;

    /**
     * 阻塞队列容量
     */
    private int queueCapacity;

    /**
     * 线程名称前缀
     */
    private String threadNamePrefix;
}
